<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div class="col-md-12">
	<div class="panel-heading">
		<label>作废的权限</label>
	</div>
	<div class="panel-body bg-danger">
		<!-- S 组 -->
		<c:forEach items="${deadAuthorities}" var="group">
			<div class="col-md-12">
				<div class="panel panel-default">
					<div class="panel-heading checkbox">
					    <label>
					     	${group.comment}[组]<%-- (${group.name}) --%>
					    </label>
					</div>
					<div class="panel-body">
						<!-- 模块 -->
						<c:forEach items="${group.modules}" var="module">
						<div class="col-md-3">
							<div class="checkbox" onclick="showAction_authority_authority(this)">
							    <label>
							      <a>${module.comment}[模块]</a>
							    </label>
							   <%-- (${module.name}) --%>
							</div>
							<%-- 操作 --%>
							<div class="js_action" style="display: none;">
							<c:forEach items="${module.actions}" var="action">
								<div class="col-md-3">
								<label>
							      <a>${action.comment}</a>
							    </label>
								</div>
							</c:forEach>
							</div>
						</div>
						</c:forEach>
					</div>
				</div>
			</div>
			</c:forEach>
		<!-- E 模块 -->
	</div>
</div>

<script>
	function showAction_authority_authority(_this){
		var $this = $(_this);
		var $action = $this.parent().find(".js_action");
		fun_popup_common($this, "操作", $action.html(), 700, 300, false);
	}
</script>